<template>
  <div>
    <el-card>
      <el-table :data="menuList" border style="width: 100%">
        <el-table-column prop="menuName" label="权限名称"> </el-table-column>
        <el-table-column prop="href" label="权限路径"> </el-table-column>
        <el-table-column prop="icon" label="权限图标"> </el-table-column>
        <el-table-column prop="menuType" label="权限级别"> </el-table-column>
        <el-table-column prop="menuCode" label="权限代码"> </el-table-column>
        <el-table-column prop="parentId" label="父级权限"> </el-table-column>
        <el-table-column prop="remark" label="权限备注"> </el-table-column>
        <el-table-column prop="status" label="权限状态"> </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      menuList: [],
    };
  },
  methods: {
    loadMenuList() {
      this.$axios
        .post("/menus/queryAll")
        .then((res) => {
          this.menuList = res.data.data.list;
        })
        .catch((err) => {
          console.error(err);
        });
    },
  },
  mounted() {
    this.loadMenuList();
  },
};
</script>